﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:pl="clr-namespace:Planerator"
        xmlns:local="clr-namespace:Kinespective" x:Class="Kinespective.MainWindow"
        Title="Adaptive Perspective" Height="768" Width="1024" 
        Closing="Window_Closing" WindowState="Maximized" WindowStartupLocation="CenterScreen"
        Background="Black" Foreground="White" Loaded="Window_Loaded">
    <Window.DataContext>
        <local:AdaptiveVM/>
    </Window.DataContext>
    <Grid>

        <pl:Planerator x:Name="myPlanerator" 
			RotationX="{Binding xSlider}"
			RotationY="{Binding ySlider}"
			FieldOfView="{Binding Value, ElementName=fovSlider}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="100,0" >
            <RichTextBox x:Name="Text" Background="{x:Null}" Foreground="White"
                         HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" BorderBrush="{x:Null}"
                         FontSize="{Binding AdaptiveFontSize}">
                <FlowDocument>
                    <Paragraph TextAlignment="Center">
                        <Run Text="Une interface adaptive va"/>
                        <Run Text=" "/>
                        <Run FontStyle="Italic" Text="&quot;adapter&quot;"/>
                        <Run Text=" "/>
                        <Run Text="la forme et le contenu"/>
                    </Paragraph>
                    <Paragraph TextAlignment="Center">
                        <Run Text="en fonction de l'espace disponible à l'écran."/>
                    </Paragraph>
                    <Paragraph TextAlignment="Center">
                        <Run Text="Il est aussi possible d'adapter en fonction de la position,"/>
                    </Paragraph>
                    <Paragraph TextAlignment="Center">
                        <Run Text="la posture d'une personne mais aussi de son"/>
                    </Paragraph>
                    <Paragraph TextAlignment="Center">
                            <Run Text="comportement" FontWeight="Bold"/>
                    </Paragraph>
                </FlowDocument>
            </RichTextBox>
      </pl:Planerator>
    </Grid>

</Window>
